package fr.soat.agileconference2010.polymorphisme;

import fr.soat.agileconference2010.melangetypeobjets.Client;

public class Commande {
  protected static final double TAUX_REDUIT = 0.5;
  protected static final double TAUX_PLEIN = 1;
  private double total;
  
  public void facturer(Client client) {
    if (client.isEtudiant()) {
      calculerTotal(TAUX_REDUIT);
      prelever();
    } 
    else {
      calculerTotal(TAUX_PLEIN);
      prelever();
    }
  }

  public void calculerTotal(double taux) {
    // (..)

  }

  public void prelever() {
    // (..)

  }

  public double getTotal() {
    return total;
  }

  public void setTotal(double total) {
    this.total = total;
  }
}